package com.atbun.aclservice.mapper;

import com.atbun.aclservice.entity.AclPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 权限 Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-05-23
 */
public interface PermissionMapper extends BaseMapper<AclPermission> {
//获取该用户的菜单
    List<String> selectPermissionValueByUserId(String userId);
//获取所有菜单
    List<String> selectAllPermissionValue();
//根据用户id获取该用户下的菜单
    List<AclPermission> selectPermissionByUserId(String userId);
}
